package com.threegroup.common.dao;


import com.threegroup.common.entity.OrderDetailEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单明细表
 *
 * @author kohlerm kohlerm@163.com
 * @since 1.0.0 2022-12-16
 */
@Mapper
public interface OrderDetailDao{

    int deleteByPrimaryKey(Long id);

    int insert(OrderDetailEntity record);

    int insertSelective(OrderDetailEntity record);

    OrderDetailEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OrderDetailEntity record);

    int updateByPrimaryKey(OrderDetailEntity record);
    //查询所有记录
    List<OrderDetailEntity> selectAll(Long orderId);
    //根据orderId查OrderDetail
    List<OrderDetailEntity> selectByOrderId(Long orderId);
}